<extend name="Public/base" />
<block name="body">
	<div class="main-title">
		<h2>{$warehouse['id']?'编辑':'新增'}仓库</h2>
	</div>

    <form action="{:U('Warehouse/writeWarehouse')}" enctype="application/x-www-form-urlencoded" method="POST"
            class="form-horizontal">
        <div class="form-item">
            <label for="warehouse-shi" class="item-label">所在市</label>
            <div class="controls">
                <input id="warehouse-shi" type="text" name="shi" class="text input-large" value="{$warehouse.shi}"/>
            </div>
        </div>
        <div class="form-item">
            <label for="warehouse-name" class="item-label">仓库名称</label>
            <div class="controls">
                <input id="warehouse-name" type="text" name="name" class="text input-large" value="{$warehouse.name}"/>
            </div>
        </div>
        <div class="form-item">
            <input type="hidden" name="id" value="{$warehouse.id}" />
            <button type="submit" class="btn submit-btn ajax-post" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>
<block name="script">
    <script type="text/javascript" charset="utf-8">
        //导航高亮
        highlight_subnav('{:U('Warehouse/warehouse')}');
    </script>
</block>